<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 多用户操作</li>
        </ul>
    </div>
    <div id="rightside" class="user_info">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h3>多用户操作</h3>
            </div>
            <div class="contentbox">
                <div class="extrabottom" style="height:auto;">
	                <div class="alert alert-info">
		              	<strong>私信/通知</strong>
		            </div>
	      			<form action="admin.php?ac=send_message&op=sendMessages" method="post" class="send_message">
		      			<table class="table table-bordered table-striped">
						    <colgroup>
						    	<col class="span1">
						    	<col class="span5">
						    </colgroup>
						    <thead>
						    	<tr>
									<th>管理</th>
									<th>操作</th>
						      	</tr>
						    </thead>
						    <tbody>
						    	<tr>
									<td><code>发送身份</code></td>
									<td>
										<select name="uid" id="uid">
							      			<option value="1">管理员</option>
							      			<option value="$_SESSION['user']['adminUid']">登录用户</option>
							      		</select>
									</td>
							    </tr>
						      	<tr>
									<td><code>用户添加</code></td>
									<td>
										<!--<textarea rows="2" cols="80" id="uids" name="mUidsStr" placeholder="填写通知用户uid以逗号(英文)隔开"></textarea>-->
										<div id="medium"></div>
										<input type="hidden" name="mUidsStr" id="uids"  />
									</td>
							    </tr>
							    <tr>
									<td><code>通知内容</code></td>
									<td>
										<textarea rows="5" cols="80" id="content" name="content" placeholder="填写0-140个字的内容"></textarea>
									</td>
							    </tr>
							    <tr>
									<td><code>点击发送</code></td>
									<td>
										<button type="submit" id="sendMessage" class="btn">点击发送</button>
									</td>
							    </tr>
						    </tbody>
						</table>
					</form>
					
					<div class="alert alert-info">
		              	<strong>经验修改</strong>
		            </div>
	      			<form action="admin.php?ac=user_profile&op=modifyManyUsersExp" method="post" class="send_message">
		      			<table class="table table-bordered table-striped">
						    <colgroup>
						    	<col class="span1">
						    	<col class="span5">
						    </colgroup>
						    <thead>
						    	<tr>
									<th>管理</th>
									<th>操作</th>
						      	</tr>
						    </thead>
						    <tbody>
							    <tr>
									<td><code>经验加成</code></td>
									<td>
										<input type="text" name="exp" class="input-large" placeholder="此处只能加经验值(填写经验值)" value=""/>
									</td>
							    </tr>
						      	<tr>
									<td><code>用户添加</code></td>
									<td>
										<!--<textarea rows="2" cols="80" id="uids" name="uidsStr" placeholder="填写带处理用户uid以逗号(英文)隔开"></textarea>-->
										<div id="maxNumTags"></div>
										<input type="hidden" name="uidsStr" id="mUidsStr"  />
									</td>
							    </tr>
							    <tr>
									<td><code>通知内容</code></td>
									<td>
										<textarea rows="5" cols="80" id="content" name="content" placeholder="填写0-140个字的内容"></textarea>
									</td>
							    </tr>
							    <tr>
									<td><code>点击发送</code></td>
									<td>
										<button type="submit" id="changeUsersExp" class="btn">点击修改</button>
									</td>
							    </tr>
						    </tbody>
						</table>
					</form>
                </div>
            </div>
	    </div>
    </div>
    <!--{template admin/leftside}-->

	<script type="text/javascript" src='static/scripts/jquery.min.js'></script>
	<script type="text/javascript" src='static/scripts/bootstrap.2.3.2.min.js'></script>
	<script type="text/javascript" src='static/scripts/bootstrap-tags.js'></script>
    <script type="text/javascript" src="static/scripts/enhance.js"></script>	
    <script type='text/javascript' src='static/scripts/excanvas.js'></script>
    <script type='text/javascript' src='static/scripts/jquery-ui.min.js'></script>
	<script type='text/javascript' src='static/scripts/jquery.wysiwyg.js'></script>
    <script type='text/javascript' src='static/scripts/visualize.jQuery.js'></script>
    <script type="text/javascript" src='static/scripts/functions.js'></script>
    <script type="text/javascript" src='static/scripts/common.js'></script>

    <!--[if IE 6]>
    <script type='text/javascript' src='static/scripts//png_fix.js'></script>
    <script type='text/javascript'>
      DD_belatedPNG.fix('img, .notifycount, .selected');
    </script>
    <![endif]--> 
    
    <script>
       $(function(){
         Tags.bootstrapVersion = "2";
         var t = $("#medium").tags({
           suggestions: ["3894301", "3948096", "3899627"],
           tagData: [],
           maxNumTags: 10
         });

         $('#sendMessage').click(function() {
             var tags = t.getTagsWithContent();
             var ids = [];
             $.each(tags, function() {
               ids.push(this.tag)
             })
             $('#uids').val(ids.join(','));
         })
         
         var u = $("#maxNumTags").tags({
             suggestions: ["3894301", "3948096", "3899627"],
             tagData: [],
             maxNumTags: 10
         });
         
         $('#changeUsersExp').click(function() {
             var tags = u.getTagsWithContent();
             var ids = [];
             $.each(tags, function() {
               ids.push(this.tag)
             })
             $('#mUidsStr').val(ids.join(','));
         })
       });
     </script>
</body>
</html>